package cn.jinjimi.app.plugin;

import cn.jinjimi.framework.plugin.BasePlugin;
import cn.jinjimi.framework.plugin.PluginLimit;

/**
 * Created by Hiro on 15/6/2.
 */
public class WebPlugin extends BasePlugin {

    public static class PluginParam extends cn.jinjimi.app.plugin.PluginParam {
        public static final int WEB_SRC_DOMAIN = 0; //自媒体首页
        public static final int WEB_SRC_MINISITE = 1; //XXX的微站
        public static final int WEB_SRC_MIXED = 2;  //内嵌H5
        public static final int WEB_SRC_DISCOVER = 3;  //发现
        public static final int WEB_SRC_EXTERNAL = 4;  //
        public static final int WEB_SRC_MINICARD = 5;  //微名片

    }

    public String url;

    public void setUrl(String url){
        this.url = url;
    }

    public String getUrl(){return this.url;}

    @Override
    public Class<WebPlugin> getType(){
        return WebPlugin.class;
    }

    public WebPlugin(String code,String url){
        super(code);
        setUrl(url);
    }

    public WebPlugin(String name, String code, String url){
        super(name, code);
        setUrl(url);
    }

    public WebPlugin(String name, String code, String url, PluginLimit limit){
        super(name, code, limit);
        setUrl(url);
    }
}
